package com.jxsa.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@AllArgsConstructor
@ToString
public enum  ResultEnum {

    ERROR(500, "系统发生错误"),
    SUCCESS(200, "成功"),
    FORBIDDEN(403, "暂无访问权限"),
    UNAUTHORIZED(401, "凭证错误或过期"),
    UNSUPPORTED_GRANT(500, "错误的GRANT_TYPE"),
    USERNAME_NOT_FOUND(500, "用户名错误"),
    BAD_CREDENTIALS(500, "密码错误"),
    TOO_MANY_REQUESTS(500, "请求频繁,请稍后重试"),
    LOCKED(500, "被锁定，请及时联系管理员"),
    SERVICE_UNAVAILABLE(500, "不能发现的服务"),
            ;
    private final int code;
    private final String msg;
}
